/* 存储用户信息 */

const initState = {}

export function user (state = initState, action) {
  if (action.type === 'get/user') {
    return action.user
  }
  if (action.type === 'user/clearInfo') {
    return initState
  }
  return state
}
